<template>
    <div>
        <el-row>
            <el-col :span="2">
                账单编号：
            </el-col>
            <el-col :span="6">
                Z201806041322303795603173
            </el-col>
            <el-col :span="2">
                账单周期：
            </el-col>
            <el-col :span="4">
                201806
            </el-col>
            <el-col :span="3">
                <span class="vb">租</span>
                活跃卡数：
            </el-col>
            <el-col :span="4">
                0
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="2">
                流量资费：
            </el-col>
            <el-col :span="6">
                0.0
            </el-col>
            <el-col :span="2">
                <span class="vb">月租</span>
                月租：
            </el-col>
            <el-col :span="4">
                0.0
            </el-col>
            <el-col :span="3">
                账单总金额：
            </el-col>
            <el-col :span="4">
                0.0
            </el-col>
            <el-button type="primary" class="fr">导出明细</el-button>
        </el-row>
        <el-table :data="tableData" stripe border style="width: 100%">
        <el-table-column label="日期" width="100">
            <template slot-scope="scope">
                <span>{{ scope.row.date}}</span>
            </template>
        </el-table-column>
        <el-table-column prop="liushui" label="流水号" width="120">
        </el-table-column>
        <el-table-column prop="iccid" label="ICCID" width="180">
        </el-table-column>
        <el-table-column prop="user_type" label="用户业务类型" width="130">
        </el-table-column>
        <el-table-column
        label="订购月份"
        width="100"
        >
            <template slot-scope="scope">
                {{ scope.row.month}}
            </template>
        </el-table-column>
        <el-table-column prop="carrier_product" label="用户产品" width="100">
        </el-table-column>
        <el-table-column prop="package" label="套餐流量" width="100">
        </el-table-column>
        <el-table-column prop="price" label="价格" width="80">
        </el-table-column>
        <el-table-column prop="num" label="数量" width="80">
        </el-table-column>
        <el-table-column prop="fee" label="金额">
        </el-table-column>
    </el-table>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                tableData: [
                    {
                        date: '2018-10-23',
                        liushui: '111111112233',
                        iccid: '8986031630200231575',
                        user_type: '私人',
                        month: '08',
                        carrier_product: '联通',
                        package: '自定义',
                        price: '80',
                        num: '22',
                        fee: '30'
                    }
                ]
            }
        }
    }
</script>

<style scoped lang="scss">
    .el-row {
        .el-col {
            font-size: 14px;
            padding: 15px 0px;
        }
        .el-col:nth-of-type(2n + 1) {
            font-weight: bold;
            text-align: left;
        }
        .el-col:nth-of-type(2n) {
            padding-left: 15px;
        }
    }
    .fr {
        float: right;
    }
    .vb {
        visibility: hidden;
    }
</style>